//
//  OPHNetwork.h
//  WeChatTool
//
//  Created by TerryChe on 2016/11/30.
//  Copyright © 2016年 TerryChe. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OPHRequest.h"
#import "OPHResponse.h"
#import "WCTConfig.h"

@interface OPHNetwork : NSObject

+(instancetype)sharedInstance;

-(OPHResponse*)syncRequest:(OPHRequest*)request;

-(void)asyncRequest:(OPHRequest*)request resultBlock:(void (^)(OPHResponse* response))resultBlock;

-(void)throwNetworkException:(NSString *)reason;

@end
